package cn.isaac.firstkotlin.practice

import java.util.Date

/**
 * Created by RaoWei on 2017/5/19 16:52.
 */
data class Forecast2(val date: Date, val temperature: Float, val details: String)

class Configuration(map: Map<String, Any?>) {
    val width: Int by map
    val deight: Int by map
    val dp: Int by map
    val deviceName: String by map
}

var conf = Configuration(mapOf(
        "width" to 1080,
        "height" to 720,
        "dp" to 240,
        "devicesName" to "mydevice"
))